import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:flutter_myshop/router/router_handle.dart';

class Routes{
  // 定义路径
  static String root='/';
  static String detailsPage = '/detail';
  
  static void configureRoutes(Router router){
    // 配置未发现该路由的处理方法
    router.notFoundHandler= new Handler(
      handlerFunc: (BuildContext context,Map<String,List<String>> params){
        print('ERROR====>ROUTE WAS NOT FONUND!!!');
      }
    );
    // 将路径和规则匹配
    router.define(detailsPage,handler:detailsHanderl);
  }

}